package cn.gorit.entity.content;

import java.io.Serializable;

/**
 * @version v1.0
 * @Classname CommonLike
 * @Description 通用点赞
 * @Author CodingGorit
 * @Created on 2021/4/2 23:00
 * @IDLE IntelliJ IDEA
 **/
public class Like implements Serializable {

    private String id;

    /**
     * 对应的作品  blogID
     * 或 评论的ID 为 commentId or  responseId
     */
    private String likeId;

    /**
     * 1 主体内容点赞，2 评论点赞
     * 默认为 1
     */
    private Integer likeType;

    /**
     * 用户 ID
     */
    private String userId;

    /**
     * 点赞状态 0 未点赞 1 已点赞
     */
    private Integer status;

    /**
     * 创建时间
     */
    private String createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLikeId() {
        return likeId;
    }

    public void setLikeId(String likeId) {
        this.likeId = likeId;
    }

    public Integer getLikeType() {
        return likeType;
    }

    public void setLikeType(Integer likeType) {
        this.likeType = likeType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "CommonLike{" +
                "id=" + id +
                ", likeId='" + likeId + '\'' +
                ", likeType=" + likeType +
                ", userId='" + userId + '\'' +
                ", status=" + status +
                ", createTime='" + createTime + '\'' +
                '}';
    }
}
